package com.taotao.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import com.taotao.common.resp.TaotaoResult;
import com.taotao.dao.ContentMapper;
import com.taotao.pojo.Content;
import com.taotao.service.ContentService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

/**
 * 前端 轮循播放图片 内容分类id查询列表
 * Created by zzb on 2017/11/9.
 */
@Service
public class ContentServiceImpl implements ContentService {


    @Autowired
    private ContentMapper contentMapper;

    public List<Content> getContentList(long cid) {
        return null;
    }

    public TaotaoResult save(Content content) {
        //补全信息
        //content.set
        content.setCreated(new Date());
        content.setUpdated(new Date());
        contentMapper.insertSelective(content);
        return TaotaoResult.ok();
    }

}
